#include<cstdio>
#include<cstring>
#include<iostream>
using namespace std;
int main(){
	int n,i=0,j=0;
	char a[50],c;
	c=getchar();
	while(c!='\n'){
		a[i]=c;
		if(a[i]>='a'&&a[i]<='z')
			a[i]=(a[i]-'a'+3)%26+'a';
		else if(a[i]>='A'&&a[i]<='Z')
			a[i]=(a[i]-'A'+3)%26+'A';
			c=getchar();
			i++;
    }
    n=strlen(a);
    int m=n-1;
    while(j<m){
    	char c=a[j];
    	a[j]=a[m];
    	a[m]=c;
    	j++;
    	m--;
	}
	for(int i=0;i<n;i++)
	{
			if(a[i]>='a'&&a[i]<='z')
				a[i]=a[i]-32;
		else if(a[i]>='A'&&a[i]<='Z')	
				a[i]=a[i]+32;	
		cout<<a[i];
	}
	return 0;
}
